package com.enotourister.core.rfp;

import com.enotourister.core.model.Tourist;
import com.enotourister.core.param.Parameter;


class RegularRequestForProposal implements RequestForProposal {
	private Parameter params;
	private Tourist tourist;
	private static final long serialVersionUID = 7411239756375544623L;

	public RegularRequestForProposal(Parameter params, Tourist tourist) {
		setParams(params);
		setTourist(tourist);
	}
	
	@Override
	public Parameter getParams() {
		return params;
	}

	private void setParams(Parameter params) {
		this.params = params;
	}

	@Override
	public Tourist getTourist() {
		return tourist;
	}

	private void setTourist(Tourist tourist) {
		this.tourist = tourist;
	}
	
	@Override
	public String toString() {
		return "[rfp: " + params + "," + tourist + "]";
	}
	
	@Override
	public boolean equals(RequestForProposal rfp) {
		return getTourist().equals(rfp.getTourist()) &&
			getParams().equals(rfp.getParams());
	}
}
